@extends('layouts.master')

@section('title')
    产地管理——木投网商城管理后台
@stop

@section('app_css')
    <link href="/resource/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/resource/css/style.css">
@stop

@section('app_js')

@stop


@section('content')
    @include('common.nav')
<div class="container-fluid">
    <div class="row" id="navLeft">
        @include('common.product_nav')
        <div class="col-lg-10">
            <div class="navbottom">
              <span>您的位置：</span>其他 > 产地管理
            </div>
            <div class="contentNav">
              <ul>
                <li>其他</li>
                <li class="btn btn-default active"><a href="/show_area">列表</a></li>
                <li class="btn btn-default"><a href="/add_area">新增</a></li>
              </ul>
            </div>
            <hr>
            <div class="contentMember"> 
              <form class="form-inline">
                <div class="form-group">
                  <label>产地分类</label>
                  <select class="form-control">
                    <option>国内</option>
                    <option>国外</option>
                  </select>
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
              </form>
              <hr>
              <table class="table table-striped table-bordered bootstrap-datatable datatable table-hover" id="example">
                <thead>
                  <tr>
                    <th>产地编号</th>
                    <th>产地名称</th>
                    <th>产地国家</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                @foreach($areas as $k => $area)
                <tr>
                    <td>{{ $area->area_id }}</td>
                    <td>{{ $area->area_name }}</td>
                    <td>{{ $area->country }}</td>
                    <td><a href="/edit_area?area_id={{ $area->area_id }}">编辑</a> | <a href="/delete_area?area_id={{ $area->area_id }}">删除</a></td>
                </tr>
                    @endforeach
                </tbody>
              </table>
            </div>
            {{ $areas->links() }}
        </div>
    </div>
</div>
